package cn.powertime.evaluation.mapper;

import cn.powertime.evaluation.entity.SysUser;
import cn.powertime.evaluation.vo.ReqSysUserListVo;
import cn.powertime.evaluation.vo.RespSysUserLionVo;
import cn.powertime.evaluation.vo.RespSysUserVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author ZYW
 * @since 2019-09-02
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    Page<RespSysUserVo> mySelectPage(Page page, @Param("vo") ReqSysUserListVo params);

    Integer batchDel(@Param("ids") List<String> strings);
    RespSysUserLionVo myUserLionById(@Param("id") Long id);

    int batchPassword(@Param("vo") SysUser sysUser);
}
